.MXChat {
  height: 100vh;
  display: flex;
  flex-direction: column;
  .middle {
  }
  .chat-box {
    background-color: #f3f3f3;
    overflow-y: auto;
    height: 500px;
    border-radius: 8px;
    padding: 5px;
    padding-top: 10px;
  }
  .chat-item {
    color: 12px;
    display: flex;
    margin-bottom: 5px;
  }
  .chat-head {
    flex: 1;
    padding: 5px;
  }
  .chat-content {
    flex: 8;
  }
  .chat-space {
    flex: 2;
  }
  .chat-card {
    margin-top: 5px;
    float: right;
  }
  .left .chat-head {
    margin-right: 2px;
  }
  .right .chat-head {
    margin-left: 2px;
  }
  .right .chat-card {
    background-color: #a9ea7a;
  }
  .adm-card {
    padding: 0 5px;
  }
  .adm-card-body {
    padding: 10px 0;
  }
  .chat-input {
    border-top: 1px solid #ccc;
    padding: 10px;
    padding-right: 0;
    display: flex;
  }
  .chat-input .input-text {
    flex: 5;
    padding: 5px;
  }
  .chat-input .input-btn {
    flex: 1;
    position: relative;
  }
  .chat-input .input-btn .btn {
    position: absolute;
    bottom: 0px;
  }
}

.MXChat2 {
  height: 100vh;

  .inner-content {
    padding: 5px;
    height: 700px;
    overflow: auto;
  }
  .footer {
    display: flex;
    padding: 10px;
  }
  .footer-right {
    width: 80px;
    position: relative;
  }
  .footer-left {
    flex-grow: 1;
  }
  .button {
    border-radius: 5px;
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .chat-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
  }
  .right {
    flex-direction: row-reverse;
  }
  .chat-head {
    flex: 1;
  }
  .chat-content {
    position: relative;
    padding-top: 15px;
    flex: 8;
   
  }
  .chat-space {
    flex: 2;
  }

  // .chat-right-item .chat-content {
  //   // text-align: left;
  // }
  .chat-card {
    background-color: white;
    display: inline-block;
  }
  .left .chat-avatar {
    margin: 5px;
  }
  .right .chat-avatar {
    margin: 5px;
  }

  .right .chat-card {
    background-color: #a9ea7a;
    float: right;
  }
  .inner-content {
    padding-top: 10px;
    border-radius: 8px;
    background-color: whitesmoke;
  }

  .adm-card {
    padding: 0 5px;
  }
  .adm-card-body {
    padding: 10px 0;
  }
  .chat-name{
    font-size: 10px;
    color: #aaa;
  }
  .left .chat-name{
    position: absolute;
    left: 2px;
    top: 0;
  }
  .right .chat-name{
    position: absolute;
    right: 4px;
    top: 0px;
  }
}

@media screen and (min-width: 1200px) {
  .MXChat2 {
    height: auto;
  }
}
